
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Mario
 */
public class ejecutarServicio {

    public ejecutarServicio(String str) throws IOException{        
        String tmp = "cmd /C "+ str;
        System.out.println(tmp);
        Process p = Runtime.getRuntime().exec(tmp);
    }
/*
    public static void main(String[] arg){
        try {
            ejecutarServicio eje = new ejecutarServicio("cmd /C start iexplore");
            Thread.sleep(5000);
            eje = new ejecutarServicio("cmd /C D:/bookmarks_07_06_11.html");
        } catch (InterruptedException ex) {
            Logger.getLogger(ejecutarServicio.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(ejecutarServicio.class.getName()).log(Level.SEVERE, null, ex);
        }

    }
*/
}
